interface PaySupplementaryAPIResData {
  code: number
  data: {
    appId: string
    nonceStr: string
    package: string
    paySign: string
    signType: string
    timeStamp: string
  }
  msg: string
  time: string
}

interface PaySupplementaryAPIData {
  id: string
}

export function paySupplementaryAPI(data: PaySupplementaryAPIData, token: string) {
  return httpInstance.post<PaySupplementaryAPIResData, PaySupplementaryAPIData>(
    '/api/intercity/patchpay',
    data,
    { headers: { token } },
  )
}
